package com.woniuxy.service.impl;

import com.woniuxy.dao.ImagesDao;
import com.woniuxy.entity.Images;
import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.service.ImagesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Leimin
 * @date 2022/05/10 11:13
 **/
@Service
public class ImagesServiceImpl implements ImagesService {
    @Resource
    private ImagesDao imagesDao;

    @Override
    public ResponseEntity addOne(Images images) {
        imagesDao.addOne(images);
        return new ResponseEntity(200,"成功",images);
    }

    @Override
    public ResponseEntity deleteOne(int id) {
        imagesDao.deleteOne(id);
        return ResponseEntity.SUCCESS;
    }
}

